<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Hash;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;

class HomeGoodsController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    // ===============================================================商城
    public function getIndex()
    {
        //查询分类
        $cate = DB::table('goods_cate')->where('pid',0)->get();
        $cates = DB::table('goods_cate')->where('pid','!=',0)->get();
        
        return view('home.goods.index',['cate'=>$cate,'cates'=>$cates]);
        
        
        
        
    }

 

}
